﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">

    <xsl:output method="xml" indent="no"/>

    <xsl:template match="/">
        <ul>
            <xsl:apply-templates/>
        </ul>
    </xsl:template>

    <xsl:template match="blocks/block">
        <li class="block_itme">
            <div class="img_box">
                <img>
                    <xsl:attribute name="src">
                        <xsl:value-of select= "imgurl" />
                    </xsl:attribute>
                    <xsl:attribute name="alt">
                        <xsl:value-of select= "des" />
                    </xsl:attribute>
                </img>
            </div>
            <div class="block_content" style="display:none">
                <xsl:apply-templates/>
            </div>
        </li>
    </xsl:template>

    <xsl:template match="block/content/div">
        <xsl:copy-of select="."/>
    </xsl:template>
</xsl:stylesheet>
